#include <cstdio>

bool check( __int64 a, __int64 b, __int64 c )
{
    if ( a + b == c || a - b == c || a * b == c )
        return true;
    if ( b )
        if ( double( a ) / double( b ) == c || a % b == c )
            return true;
    return false;
}

int main( )
{
    bool cor;
    int i, j;
    __int64 a[ 3 ];
    while ( scanf("%I64d%I64d%I64d", &a[ 0 ], &a[ 1 ], &a[ 2 ]) != EOF )
    {
        cor = false;
        for ( i = 0; i < 3; i++ )
            for ( j = 0; j < 3; j++ )
            {
                if ( i == j )
                    continue;
                if ( check( a[ i ], a[ j ], a[ 3 - i - j ] ) )
                    cor = true;
            }
        if ( cor )
            puts("oh,lucky!");
        else
            puts("what a pity!");
    }
    return 0;
}
